package com.ysxsoft.wdg.adapter.my;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;
import com.ysxsoft.wdg.bean.BannerBean;
import com.ysxsoft.wdg.bean.DiscussBean;

public class FriendAdapter extends BaseQuickAdapter<DiscussBean,BaseViewHolder> {


    public FriendAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }


    @Override
    protected void convert(BaseViewHolder helper, DiscussBean item) {

        helper.setText(R.id.tv_nick,item.getNickname());
        helper.setText(R.id.tv_num,item.getCount());
        helper.setText(R.id.tv_money,item.getMoney()+"元");
    }
}
